package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.entity.result.SearchBean;
import com.common.retrofit.service.HaiNingService;

import java.util.List;

import rx.Observable;
import rx.Subscriber;

public class DeleteSearchDatasMethods extends BaseMethods {

    private static DeleteSearchDatasMethods m_ins = null;

    public static DeleteSearchDatasMethods getInstance() {
        if (m_ins == null) {
            synchronized (DeleteSearchDatasMethods.class) {
                if (m_ins == null) {
                    m_ins = new DeleteSearchDatasMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Home/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }

    // 获取首页数据
    public void del_search(Subscriber<Object> subscriber, String uid) {
        Observable observable = initService().del_search(System.currentTimeMillis()+"",
                "4b50512c9c732419a0d992ab9cd202bc",uid
        );
        toSubscribe(observable, subscriber);
    }
}
